﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.SystemCore.DTO.Menu;

/// <summary>
///     菜单表模型 - 新增
/// </summary>
public class MenuAddDTO
{
    /// <summary>
    ///     菜单名称
    /// </summary>
    [Required(ErrorMessage = "菜单名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     员工头像
    /// </summary>
    public string? HeadImage { get; set; }

    /// <summary>
    ///     菜单icon
    /// </summary>
    public string? Icon { get; set; }

    /// <summary>
    ///     上级菜单id
    /// </summary>
    public string? SuperiorId { get; set; }

    /// <summary>
    ///     序号
    /// </summary>
    [Required(ErrorMessage = "序号不可为空")]
    public int Order { get; set; }

    /// <summary>
    ///     是否渲染
    /// </summary>
    [Required(ErrorMessage = "是否渲染不可为空")]
    public bool IsShow { get; set; }

    /// <summary>
    ///     是否启用
    /// </summary>
    [Required(ErrorMessage = "是否启用不可为空")]
    public bool IsEnable { get; set; }

    /// <summary>
    ///     是否开启缓存
    /// </summary>
    [Required(ErrorMessage = "是否开启缓存不可为空")]
    public bool IsCache { get; set; }

    /// <summary>
    ///     菜单地址
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    ///     备注
    /// </summary>
    public string? Remark { get; set; }
}